package com.ffyc.cemp.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("movie_tab")
@Data
public class Movie {
//    @TableId(type = IdType.AUTO)
//    private Integer movieId;
//    private String movieName;
//    private String movieDirector;
//    private String movieStars;
//    private String movieType;
//    private Integer movieDuration;
//    private Date movieReleaseDate;
//    private String movieDesc;
//    private String moviePoster;
//    private Integer moveRate;
//    private String movieStatus;
//    private String movieUpdateby;
//    private Date movieUpdateTime;

    @TableId(value = "movie_id", type = IdType.AUTO)
    private Integer id;
    @TableField("movie_name")
    private String name;
    @TableField("movie_director")
    private String director;
    @TableField("movie_stars")
    private String stars;
    @TableField("movie_type")
    private String type;
    @TableField("movie_duration")
    private Integer duration;
    @TableField("movie_release_date")
    private Date releaseDate;
    @TableField("movie_desc")
    private String descx;
    @TableField("movie_poster")
    private String poster;
    @TableField("movie_rate")
    private Integer rate;
    @TableField("movie_status")
    private String status;
    @TableField("movie_updateby")
    private String updateby;
    @TableField("movie_update_time")
    private Date updateTime;
}
